Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typed options system #130

Merged
merged 10 commits into from
Mar 21, 2022
Merged

Typed options system #130

merged 10 commits into from
Mar 21, 2022

Conversation

arctic-hen7
Copy link
Member

For a while now, people have requested a way to use Perseus without the define_app! macro, and it is finally here! This PR brings an entirely new system of sending options to the Perseus engine, with greater flexibility for the future, a revamped index view system (removing any dependency on index.html, you can now write that with Sycamore), and full backward compatibility with define_app! for existing apps.

Notably, the old macro system now acts as a wrapper around the new, so, while I've tried to ensure full backward compatibility, there may be some minor changes needed in fringe use-cases.

We don't have a way to display this yet, but there will soon be one.
This removes the need for the `define_app!` macro, and makes it
dependent on this new system. There may be some minor changes needed to
code using custom translations manager (which are now handled as futures).
This feature was originally present, and is now supported again!
This removes the dependency on an `index.html` file, all that is managed
internally now!

Note that this makes the old `index.html` file system dysfunctional, but
I will fix that before this is merged.
This will all be ready after the index view system supports `index.html` sourcing.
This makes this entire update include no breaking changes (theoretically)!
This makes the engine entrypoint much more versatile.
@arctic-hen7
Copy link
Member Author

There's a weird doc test failure in this that doesn't seem to make any sense whatsoever, so I'll debug that later. Otherwise, this is good to merge!

@arctic-hen7 arctic-hen7 marked this pull request as ready for review March 21, 2022 09:14
@arctic-hen7 arctic-hen7 merged commit ccd4c43 into main Mar 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant